package com.training1.core.web.controller.lizeyu;

public  class Student implements Comparable<Student> {
	private int id;
	private String name;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public int compareTo(Student o) {
		if(this.id>o.id){
			return 1;
		}else if(this.id<o.id){
			return -1;
		}else{
			return 0;
		}
	}
	
}
